import request from '@/utils/request'
import defaultSettings from '@/settings'

export function fetchList(query) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/module/list',
    method: 'post',
    data: query
  })
}
export function save(data) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/module/save',
    method: 'post',
    data: data
  })
}

export function removeByIds(ids) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/module/removeByIds?ids=' + ids,
    method: 'get'
  })
}
/**
 * 下拉列表
 */
export function getList() {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/module/getList',
    method: 'get'
  })
}
